package rest

import (
	"github.com/gin-gonic/gin"
)

type (
	Middlerware gin.HandlerFunc

	Route struct {
		Method  string
		Path    string
		Handler gin.HandlerFunc
	}

	jwtSetting struct {
		enable     bool
		secret     string
		prevSecret string
	}

	featuredRoutes struct {
		priority     bool
		jwt          jwtSetting
		routes       []Route
		urlPrefix    string
		middlerwares []gin.HandlerFunc
	}

	RouteOption func(r *featuredRoutes)
)
